#ifndef USER_H
#define USER_H
#include <string>
#include <iostream>

using namespace std;


class User
{
    public:
        User(string loginName = "XXX",string loginpassword="666666");
        virtual ~User(){};
        void setUser ();
        void showUser ();
        void setLoginName(string loginName);
        void setLoginpassword(string loginpassword);
        string getLoginName();
        string getLoginpasssword();
        void readFromFile(fstream &);
        void writeToFile(fstream &)const;



    protected:
        string loginName;
        string loginpassword;

    private:
};

#endif // USER_H
